import request from '@/utils/request'

import type { responseDataType, loginData, UserInfo } from './model'
const baseRequest = request.init(import.meta.env.VITE_APP_BASE_API)

// 登录
export function login(data: loginData) {
  return baseRequest.post<any, responseDataType<UserInfo>>('api/common/login', data)
}
